import request from '@/utils/request'

// 查询奖励列表
export function listPunish(query) {
  return request({
    url: '/hrm/punish/list',
    method: 'get',
    params: query
  })
}

export function punishList(query) {
  return request({
    url: '/hrm/punish/listPunish',
    method: 'get',
    params: query
  })
}

// 查询奖励详细
export function getPunish(id) {
  return request({
    url: '/hrm/punish/' + id,
    method: 'get'
  })
}

// 新增奖励
export function addPunish(data) {
  return request({
    url: '/hrm/punish',
    method: 'post',
    data: data
  })
}

// 修改奖励
export function updatePunish(data) {
  return request({
    url: '/hrm/punish',
    method: 'put',
    data: data
  })
}

// 删除奖励
export function delPunish(id) {
  return request({
    url: '/hrm/punish/' + id,
    method: 'delete'
  })
}
